package dome2;

public class Subject {
	private int id;
	private String subjectname;
	private int classhour;
	private int gradeid;

	public Subject() {
	}

	public Subject(int id, String subjectname, int classhour, int gradeid) {
		super();
		this.id = id;
		this.subjectname = subjectname;
		this.classhour = classhour;
		this.gradeid = gradeid;
	}

	public Subject(String subjectname, int classhour, int gradeid) {
		super();
		this.subjectname = subjectname;
		this.classhour = classhour;
		this.gradeid = gradeid;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSubjectname() {
		return subjectname;
	}

	public void setSubjectname(String subjectname) {
		this.subjectname = subjectname;
	}

	public int getClasshour() {
		return classhour;
	}

	public void setClasshour(int classhour) {
		this.classhour = classhour;
	}

	public int getGradeid() {
		return gradeid;
	}

	public void setGradeid(int gradeid) {
		this.gradeid = gradeid;
	}

	@Override
	public String toString() {
		return "Subject [id=" + id + ", subjectname=" + subjectname + ", classhour=" + classhour + ", gradeid="
				+ gradeid + "]";
	}

}
